package org.hook.showcase.pattern.decorator.impl;

import org.hook.showcase.pattern.decorator.Beverage;
import org.hook.showcase.pattern.decorator.CondimentDecorator;

public class Mocha extends CondimentDecorator {
	protected Beverage beverage;

	public Mocha(Beverage beverage) {
		this.beverage = beverage;
	}

	@Override
	public String getDescription() {
		return beverage.getDescription() + ",Mocha ";
	}

	@Override
	public double cost() {
		return beverage.cost() + .20;
	}

}
